home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 4.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 54 68 75 20 4a | 61 6e 20 32 32 20 31 34 |on Thu J|an 22 14|
|00000040| 3a 34 35 3a 30 30 20 31 | 39 39 38 0a 3b 3b 3b 20 |:45:00 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 78 65 | 6d 61 63 73 2d 32 30 2e |emacs/xe|macs-20.|
|00000090| 33 2f 6c 69 73 70 2f 70 | 72 69 6d 2f 64 69 61 6c |3/lisp/p|rim/dial|
|000000a0| 6f 67 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |og.el.;;|; emacs |
|000000b0| 76 65 72 73 69 6f 6e 20 | 32 30 2e 33 20 22 56 61 |version |20.3 "Va|
|000000c0| 74 69 63 61 6e 20 43 69 | 74 79 22 20 58 45 6d 61 |tican Ci|ty" XEma|
|000000d0| 63 73 20 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |cs Luci|d..;;; b|
|000000e0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000f0| 32 2e 32 35 20 58 45 6d | 61 63 73 3b 20 32 32 2d |2.25 XEm|acs; 22-|
|00000100| 4d 61 72 2d 39 36 2e 0a | 3b 3b 3b 20 6f 70 74 69 |Mar-96..|;;; opti|
|00000110| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|00000120| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|00000130| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|00000140| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000150| 20 45 6d 61 63 73 20 31 | 39 2e 0a 0a 28 69 66 20 | Emacs 1|9...(if |
|00000160| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000170| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000180| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000190| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|000001a0| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|000001b0| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|000001c0| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|000001d0| 6f 6e 20 22 32 30 22 29 | 29 29 0a 20 20 20 20 28 |on "20")|)). (|
|000001e0| 65 72 72 6f 72 20 22 60 | 64 69 61 6c 6f 67 2e 65 |error "`|dialog.e|
|000001f0| 6c 27 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 20 |l' was c|ompiled |
|00000200| 66 6f 72 20 45 6d 61 63 | 73 20 32 30 22 29 29 0a |for Emac|s 20")).|
|00000210| 0a 28 6f 72 20 28 62 6f | 75 6e 64 70 20 27 63 75 |.(or (bo|undp 'cu|
|00000220| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 29 |rrent-lo|ad-list)|
|00000230| 20 28 73 65 74 71 20 63 | 75 72 72 65 6e 74 2d 6c | (setq c|urrent-l|
|00000240| 6f 61 64 2d 6c 69 73 74 | 20 6e 69 6c 29 29 0a 0a |oad-list| nil))..|
|00000250| 0a 23 40 31 35 37 20 41 | 73 6b 20 75 73 65 72 20 |.#@157 A|sk user |
|00000260| 61 20 22 79 20 6f 72 20 | 6e 22 20 71 75 65 73 74 |a "y or |n" quest|
|00000270| 69 6f 6e 20 77 69 74 68 | 20 61 20 70 6f 70 75 70 |ion with| a popup|
|00000280| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2e 0a 52 65 74 | dialog |box..Ret|
|00000290| 75 72 6e 73 20 74 20 69 | 66 20 61 6e 73 77 65 72 |urns t i|f answer|
|000002a0| 20 69 73 20 22 79 65 73 | 22 2e 0a 54 61 6b 65 73 | is "yes|"..Takes|
|000002b0| 20 6f 6e 65 20 61 72 67 | 75 6d 65 6e 74 2c 20 77 | one arg|ument, w|
|000002c0| 68 69 63 68 20 69 73 20 | 74 68 65 20 73 74 72 69 |hich is |the stri|
|000002d0| 6e 67 20 74 6f 20 64 69 | 73 70 6c 61 79 20 74 6f |ng to di|splay to|
|000002e0| 20 61 73 6b 20 74 68 65 | 20 71 75 65 73 74 69 6f | ask the| questio|
|000002f0| 6e 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 79 |n...(def|alias 'y|
|00000300| 65 73 2d 6f 72 2d 6e 6f | 2d 70 2d 64 69 61 6c 6f |es-or-no|-p-dialo|
|00000310| 67 2d 62 6f 78 20 23 5b | 28 70 72 6f 6d 70 74 29 |g-box #[|(prompt)|
|00000320| 20 22 c0 c1 1a 1b c4 0d | c6 42 21 88 c7 c8 8d 2a | "......|.B!....*|
|00000330| 87 22 20 5b 30 20 6e 69 | 6c 20 65 76 65 6e 74 20 |." [0 ni|l event |
|00000340| 65 63 68 6f 2d 6b 65 79 | 73 74 72 6f 6b 65 73 20 |echo-key|strokes |
|00000350| 70 6f 70 75 70 2d 64 69 | 61 6c 6f 67 2d 62 6f 78 |popup-di|alog-box|
|00000360| 20 70 72 6f 6d 70 74 20 | 28 5b 22 59 65 73 22 20 | prompt |(["Yes" |
|00000370| 79 65 73 20 74 5d 20 5b | 22 4e 6f 22 20 6e 6f 20 |yes t] [|"No" no |
|00000380| 74 5d 20 6e 69 6c 20 5b | 22 43 61 6e 63 65 6c 22 |t] nil [|"Cancel"|
|00000390| 20 61 62 6f 72 74 20 74 | 5d 29 20 79 6e 70 2d 64 | abort t|]) ynp-d|
|000003a0| 6f 6e 65 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |one (byt|e-code "|
|000003b0| c0 09 21 11 c2 09 21 ab | 8e c3 09 21 c4 61 ab 87 |..!...!.|...!.a..|
|000003c0| c5 c6 c7 5c 22 88 aa 69 | c2 09 21 ab 8e c3 09 21 |...\"..i|..!....!|
|000003d0| c8 61 ab 87 c5 c6 c9 5c | 22 88 aa 56 c2 09 21 ab |.a.....\|"..V..!.|
|000003e0| 95 c3 09 21 ca 61 ac 87 | c3 09 21 cb 61 ab 87 cc |...!.a..|..!.a...|
|000003f0| cd c9 5c 22 88 aa 3c ce | 09 21 ac 37 cf 20 88 d0 |..\"..<.|.!.7. ..|
|00000400| d1 21 88 aa 2e 22 20 5b | 6e 65 78 74 2d 63 6f 6d |.!..." [|next-com|
|00000410| 6d 61 6e 64 2d 65 76 65 | 6e 74 20 65 76 65 6e 74 |mand-eve|nt event|
|00000420| 20 6d 69 73 63 2d 75 73 | 65 72 2d 65 76 65 6e 74 | misc-us|er-event|
|00000430| 2d 70 20 65 76 65 6e 74 | 2d 6f 62 6a 65 63 74 20 |-p event|-object |
|00000440| 79 65 73 20 74 68 72 6f | 77 20 79 6e 70 2d 64 6f |yes thro|w ynp-do|
|00000450| 6e 65 20 74 20 6e 6f 20 | 6e 69 6c 20 61 62 6f 72 |ne t no |nil abor|
|00000460| 74 20 6d 65 6e 75 2d 6e | 6f 2d 73 65 6c 65 63 74 |t menu-n|o-select|
|00000470| 69 6f 6e 2d 68 6f 6f 6b | 20 73 69 67 6e 61 6c 20 |ion-hook| signal |
|00000480| 71 75 69 74 20 62 75 74 | 74 6f 6e 2d 72 65 6c 65 |quit but|ton-rele|
|00000490| 61 73 65 2d 65 76 65 6e | 74 2d 70 20 62 65 65 70 |ase-even|t-p beep|
|000004a0| 20 6d 65 73 73 61 67 65 | 20 22 70 6c 65 61 73 65 | message| "please|
|000004b0| 20 61 6e 73 77 65 72 20 | 74 68 65 20 64 69 61 6c | answer |the dial|
|000004c0| 6f 67 20 62 6f 78 22 5d | 20 33 29 5d 20 33 20 28 |og box"]| 3)] 3 (|
|000004d0| 23 24 20 2e 20 35 39 39 | 29 5d 29 0a 23 40 33 36 |#$ . 599|)]).#@36|
|000004e0| 31 20 41 73 6b 20 75 73 | 65 72 20 61 20 79 65 73 |1 Ask us|er a yes|
|000004f0| 2d 6f 72 2d 6e 6f 20 71 | 75 65 73 74 69 6f 6e 2e |-or-no q|uestion.|
|00000500| 20 20 52 65 74 75 72 6e | 20 74 20 69 66 20 61 6e | Return| t if an|
|00000510| 73 77 65 72 20 69 73 20 | 79 65 73 2e 0a 54 68 65 |swer is |yes..The|
|00000520| 20 71 75 65 73 74 69 6f | 6e 20 69 73 20 61 73 6b | questio|n is ask|
|00000530| 65 64 20 77 69 74 68 20 | 61 20 64 69 61 6c 6f 67 |ed with |a dialog|
|00000540| 20 62 6f 78 20 6f 72 20 | 74 68 65 20 6d 69 6e 69 | box or |the mini|
|00000550| 62 75 66 66 65 72 2c 20 | 61 73 20 61 70 70 72 6f |buffer, |as appro|
|00000560| 70 72 69 61 74 65 2e 0a | 54 61 6b 65 73 20 6f 6e |priate..|Takes on|
|00000570| 65 20 61 72 67 75 6d 65 | 6e 74 2c 20 77 68 69 63 |e argume|nt, whic|
|00000580| 68 20 69 73 20 74 68 65 | 20 73 74 72 69 6e 67 20 |h is the| string |
|00000590| 74 6f 20 64 69 73 70 6c | 61 79 20 74 6f 20 61 73 |to displ|ay to as|
|000005a0| 6b 20 74 68 65 20 71 75 | 65 73 74 69 6f 6e 2e 0a |k the qu|estion..|
|000005b0| 49 74 20 73 68 6f 75 6c | 64 20 65 6e 64 20 69 6e |It shoul|d end in|
|000005c0| 20 61 20 73 70 61 63 65 | 3b 20 60 79 65 73 2d 6f | a space|; `yes-o|
|000005d0| 72 2d 6e 6f 2d 70 27 20 | 61 64 64 73 20 60 28 79 |r-no-p' |adds `(y|
|000005e0| 65 73 20 6f 72 20 6e 6f | 29 20 27 20 74 6f 20 69 |es or no|) ' to i|
|000005f0| 74 2e 0a 54 68 65 20 75 | 73 65 72 20 6d 75 73 74 |t..The u|ser must|
|00000600| 20 63 6f 6e 66 69 72 6d | 20 74 68 65 20 61 6e 73 | confirm| the ans|
|00000610| 77 65 72 20 77 69 74 68 | 20 52 45 54 2c 0a 61 6e |wer with| RET,.an|
|00000620| 64 20 63 61 6e 20 65 64 | 69 74 20 69 74 20 75 6e |d can ed|it it un|
|00000630| 74 69 6c 20 69 74 20 61 | 73 20 62 65 65 6e 20 63 |til it a|s been c|
|00000640| 6f 6e 66 69 72 6d 65 64 | 2e 1f 0a 28 64 65 66 61 |onfirmed|...(defa|
|00000650| 6c 69 61 73 20 27 79 65 | 73 2d 6f 72 2d 6e 6f 2d |lias 'ye|s-or-no-|
|00000660| 70 2d 6d 61 79 62 65 2d | 64 69 61 6c 6f 67 2d 62 |p-maybe-|dialog-b|
|00000670| 6f 78 20 23 5b 28 70 72 | 6f 6d 70 74 29 20 22 c0 |ox #[(pr|ompt) ".|
|00000680| 20 ab 84 c1 5c 6e 21 87 | c3 5c 6e 21 87 22 20 5b | ...\n!.|.\n!." [|
|00000690| 73 68 6f 75 6c 64 2d 75 | 73 65 2d 64 69 61 6c 6f |should-u|se-dialo|
|000006a0| 67 2d 62 6f 78 2d 70 20 | 79 65 73 2d 6f 72 2d 6e |g-box-p |yes-or-n|
|000006b0| 6f 2d 70 2d 64 69 61 6c | 6f 67 2d 62 6f 78 20 70 |o-p-dial|og-box p|
|000006c0| 72 6f 6d 70 74 20 79 65 | 73 2d 6f 72 2d 6e 6f 2d |rompt ye|s-or-no-|
|000006d0| 70 2d 6d 69 6e 69 62 75 | 66 5d 20 32 20 28 23 24 |p-minibu|f] 2 (#$|
|000006e0| 20 2e 20 31 32 35 30 29 | 5d 29 0a 23 40 33 39 35 | . 1250)|]).#@395|
|000006f0| 20 41 73 6b 20 75 73 65 | 72 20 61 20 22 79 20 6f | Ask use|r a "y o|
|00000700| 72 20 6e 22 20 71 75 65 | 73 74 69 6f 6e 2e 20 20 |r n" que|stion. |
|00000710| 52 65 74 75 72 6e 20 74 | 20 69 66 20 61 6e 73 77 |Return t| if answ|
|00000720| 65 72 20 69 73 20 22 79 | 22 2e 0a 54 61 6b 65 73 |er is "y|"..Takes|
|00000730| 20 6f 6e 65 20 61 72 67 | 75 6d 65 6e 74 2c 20 77 | one arg|ument, w|
|00000740| 68 69 63 68 20 69 73 20 | 74 68 65 20 73 74 72 69 |hich is |the stri|
|00000750| 6e 67 20 74 6f 20 64 69 | 73 70 6c 61 79 20 74 6f |ng to di|splay to|
|00000760| 20 61 73 6b 20 74 68 65 | 20 71 75 65 73 74 69 6f | ask the| questio|
|00000770| 6e 2e 0a 54 68 65 20 71 | 75 65 73 74 69 6f 6e 20 |n..The q|uestion |
|00000780| 69 73 20 61 73 6b 65 64 | 20 77 69 74 68 20 61 20 |is asked| with a |
|00000790| 64 69 61 6c 6f 67 20 62 | 6f 78 20 6f 72 20 74 68 |dialog b|ox or th|
|000007a0| 65 20 6d 69 6e 69 62 75 | 66 66 65 72 2c 20 61 73 |e minibu|ffer, as|
|000007b0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 2e 0a 49 74 | appropr|iate..It|
|000007c0| 20 73 68 6f 75 6c 64 20 | 65 6e 64 20 69 6e 20 61 | should |end in a|
|000007d0| 20 73 70 61 63 65 3b 20 | 60 79 2d 6f 72 2d 6e 2d | space; |`y-or-n-|
|000007e0| 70 27 20 61 64 64 73 20 | 60 28 79 20 6f 72 20 6e |p' adds |`(y or n|
|000007f0| 29 20 27 20 74 6f 20 69 | 74 2e 0a 4e 6f 20 63 6f |) ' to i|t..No co|
|00000800| 6e 66 69 72 6d 61 74 69 | 6f 6e 20 6f 66 20 74 68 |nfirmati|on of th|
|00000810| 65 20 61 6e 73 77 65 72 | 20 69 73 20 72 65 71 75 |e answer| is requ|
|00000820| 65 73 74 65 64 3b 20 61 | 20 73 69 6e 67 6c 65 20 |ested; a| single |
|00000830| 63 68 61 72 61 63 74 65 | 72 20 69 73 20 65 6e 6f |characte|r is eno|
|00000840| 75 67 68 2e 0a 41 6c 73 | 6f 20 61 63 63 65 70 74 |ugh..Als|o accept|
|00000850| 73 20 53 70 61 63 65 20 | 74 6f 20 6d 65 61 6e 20 |s Space |to mean |
|00000860| 79 65 73 2c 20 6f 72 20 | 44 65 6c 65 74 65 20 74 |yes, or |Delete t|
|00000870| 6f 20 6d 65 61 6e 20 6e | 6f 2e 1f 0a 28 64 65 66 |o mean n|o...(def|
|00000880| 61 6c 69 61 73 20 27 79 | 2d 6f 72 2d 6e 2d 70 2d |alias 'y|-or-n-p-|
|00000890| 6d 61 79 62 65 2d 64 69 | 61 6c 6f 67 2d 62 6f 78 |maybe-di|alog-box|
|000008a0| 20 23 5b 28 70 72 6f 6d | 70 74 29 20 22 c0 20 ab | #[(prom|pt) ". .|
|000008b0| 84 c1 5c 6e 21 87 c3 5c | 6e 21 87 22 20 5b 73 68 |..\n!..\|n!." [sh|
|000008c0| 6f 75 6c 64 2d 75 73 65 | 2d 64 69 61 6c 6f 67 2d |ould-use|-dialog-|
|000008d0| 62 6f 78 2d 70 20 79 65 | 73 2d 6f 72 2d 6e 6f 2d |box-p ye|s-or-no-|
|000008e0| 70 2d 64 69 61 6c 6f 67 | 2d 62 6f 78 20 70 72 6f |p-dialog|-box pro|
|000008f0| 6d 70 74 20 79 2d 6f 72 | 2d 6e 2d 70 2d 6d 69 6e |mpt y-or|-n-p-min|
|00000900| 69 62 75 66 5d 20 32 20 | 28 23 24 20 2e 20 31 37 |ibuf] 2 |(#$ . 17|
|00000910| 37 37 29 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |77)]).(b|yte-code|
|00000920| 20 22 c0 c1 21 ab 88 c2 | c3 4d 88 c4 c5 4d 88 c0 | "..!...|.M...M..|
|00000930| 87 22 20 5b 66 62 6f 75 | 6e 64 70 20 70 6f 70 75 |." [fbou|ndp popu|
|00000940| 70 2d 64 69 61 6c 6f 67 | 2d 62 6f 78 20 79 65 73 |p-dialog|-box yes|
|00000950| 2d 6f 72 2d 6e 6f 2d 70 | 20 79 65 73 2d 6f 72 2d |-or-no-p| yes-or-|
|00000960| 6e 6f 2d 70 2d 6d 61 79 | 62 65 2d 64 69 61 6c 6f |no-p-may|be-dialo|
|00000970| 67 2d 62 6f 78 20 79 2d | 6f 72 2d 6e 2d 70 20 79 |g-box y-|or-n-p y|
|00000980| 2d 6f 72 2d 6e 2d 70 2d | 6d 61 79 62 65 2d 64 69 |-or-n-p-|maybe-di|
|00000990| 61 6c 6f 67 2d 62 6f 78 | 5d 20 32 29 0a 23 40 36 |alog-box|] 2).#@6|
|000009a0| 37 33 20 50 6f 70 20 75 | 70 20 61 20 64 69 61 6c |73 Pop u|p a dial|
|000009b0| 6f 67 20 62 6f 78 20 61 | 6e 64 20 72 65 74 75 72 |og box a|nd retur|
|000009c0| 6e 20 75 73 65 72 27 73 | 20 73 65 6c 65 63 74 69 |n user's| selecti|
|000009d0| 6f 6e 2e 0a 50 4f 53 49 | 54 49 4f 4e 20 73 70 65 |on..POSI|TION spe|
|000009e0| 63 69 66 69 65 73 20 77 | 68 69 63 68 20 66 72 61 |cifies w|hich fra|
|000009f0| 6d 65 20 74 6f 20 75 73 | 65 2e 0a 54 68 69 73 20 |me to us|e..This |
|00000a00| 69 73 20 6e 6f 72 6d 61 | 6c 6c 79 20 61 6e 20 65 |is norma|lly an e|
|00000a10| 76 65 6e 74 20 6f 72 20 | 61 20 77 69 6e 64 6f 77 |vent or |a window|
|00000a20| 20 6f 72 20 66 72 61 6d | 65 2e 0a 49 66 20 50 4f | or fram|e..If PO|
|00000a30| 53 49 54 49 4f 4e 20 69 | 73 20 74 20 6f 72 20 6e |SITION i|s t or n|
|00000a40| 69 6c 2c 20 69 74 20 6d | 65 61 6e 73 20 74 6f 20 |il, it m|eans to |
|00000a50| 75 73 65 20 74 68 65 20 | 66 72 61 6d 65 20 74 68 |use the |frame th|
|00000a60| 65 20 6d 6f 75 73 65 20 | 69 73 20 6f 6e 2e 0a 54 |e mouse |is on..T|
|00000a70| 68 65 20 64 69 61 6c 6f | 67 20 62 6f 78 20 61 70 |he dialo|g box ap|
|00000a80| 70 65 61 72 73 20 69 6e | 20 74 68 65 20 6d 69 64 |pears in| the mid|
|00000a90| 64 6c 65 20 6f 66 20 74 | 68 65 20 73 70 65 63 69 |dle of t|he speci|
|00000aa0| 66 69 65 64 20 66 72 61 | 6d 65 2e 0a 0a 43 4f 4e |fied fra|me...CON|
|00000ab0| 54 45 4e 54 53 20 73 70 | 65 63 69 66 69 65 73 20 |TENTS sp|ecifies |
|00000ac0| 74 68 65 20 61 6c 74 65 | 72 6e 61 74 69 76 65 73 |the alte|rnatives|
|00000ad0| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 69 6e 20 74 | to disp|lay in t|
|00000ae0| 68 65 20 64 69 61 6c 6f | 67 20 62 6f 78 2e 0a 49 |he dialo|g box..I|
|00000af0| 74 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 74 |t is a l|ist of t|
|00000b00| 68 65 20 66 6f 72 6d 20 | 28 54 49 54 4c 45 20 49 |he form |(TITLE I|
|00000b10| 54 45 4d 31 20 49 54 45 | 4d 32 2e 2e 2e 29 2e 0a |TEM1 ITE|M2...)..|
|00000b20| 45 61 63 68 20 49 54 45 | 4d 20 69 73 20 61 20 63 |Each ITE|M is a c|
|00000b30| 6f 6e 73 20 63 65 6c 6c | 20 28 53 54 52 49 4e 47 |ons cell| (STRING|
|00000b40| 20 2e 20 56 41 4c 55 45 | 29 2e 0a 54 68 65 20 72 | . VALUE|)..The r|
|00000b50| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 69 73 20 56 |eturn va|lue is V|
|00000b60| 41 4c 55 45 20 66 72 6f | 6d 20 74 68 65 20 63 68 |ALUE fro|m the ch|
|00000b70| 6f 73 65 6e 20 69 74 65 | 6d 2e 0a 0a 41 6e 20 49 |osen ite|m...An I|
|00000b80| 54 45 4d 20 6d 61 79 20 | 61 6c 73 6f 20 62 65 20 |TEM may |also be |
|00000b90| 6a 75 73 74 20 61 20 73 | 74 72 69 6e 67 2d 2d 74 |just a s|tring--t|
|00000ba0| 68 61 74 20 6d 61 6b 65 | 73 20 61 20 6e 6f 6e 73 |hat make|s a nons|
|00000bb0| 65 6c 65 63 74 61 62 6c | 65 20 69 74 65 6d 2e 0a |electabl|e item..|
|00000bc0| 41 6e 20 49 54 45 4d 20 | 6d 61 79 20 61 6c 73 6f |An ITEM |may also|
|00000bd0| 20 62 65 20 6e 69 6c 2d | 2d 74 68 61 74 20 6d 65 | be nil-|-that me|
|00000be0| 61 6e 73 20 74 6f 20 70 | 75 74 20 61 6c 6c 20 70 |ans to p|ut all p|
|00000bf0| 72 65 63 65 64 69 6e 67 | 20 69 74 65 6d 73 0a 6f |receding| items.o|
|00000c00| 6e 20 74 68 65 20 6c 65 | 66 74 20 6f 66 20 74 68 |n the le|ft of th|
|00000c10| 65 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 61 6e 64 |e dialog| box and|
|00000c20| 20 61 6c 6c 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 | all fol|lowing i|
|00000c30| 74 65 6d 73 20 6f 6e 20 | 74 68 65 20 72 69 67 68 |tems on |the righ|
|00000c40| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |t...(def|alias 'g|
|00000c50| 65 74 2d 64 69 61 6c 6f | 67 2d 62 6f 78 2d 72 65 |et-dialo|g-box-re|
|00000c60| 73 70 6f 6e 73 65 20 23 | 5b 28 70 6f 73 69 74 69 |sponse #|[(positi|
|00000c70| 6f 6e 20 63 6f 6e 74 65 | 6e 74 73 29 20 22 c0 09 |on conte|nts) "..|
|00000c80| 21 ab 88 c2 c3 09 21 21 | 88 aa 94 c4 09 21 ab 86 |!.....!!|.....!..|
|00000c90| c2 09 21 88 aa 89 c5 09 | 21 ab 84 c6 09 21 88 0e |..!.....|!....!..|
|00000ca0| 07 40 c8 c9 0e 07 41 5c | 22 42 1e 5c 6e cb cc 8d |.@....A\|"B.\n...|
|00000cb0| 29 87 22 20 5b 65 76 65 | 6e 74 70 20 70 6f 73 69 |)." [eve|ntp posi|
|00000cc0| 74 69 6f 6e 20 73 65 6c | 65 63 74 2d 66 72 61 6d |tion sel|ect-fram|
|00000cd0| 65 20 65 76 65 6e 74 2d | 66 72 61 6d 65 20 66 72 |e event-|frame fr|
|00000ce0| 61 6d 65 70 20 77 69 6e | 64 6f 77 70 20 73 65 6c |amep win|dowp sel|
|00000cf0| 65 63 74 2d 77 69 6e 64 | 6f 77 20 63 6f 6e 74 65 |ect-wind|ow conte|
|00000d00| 6e 74 73 20 6d 61 70 63 | 61 72 20 23 5b 28 78 29 |nts mapc|ar #[(x)|
|00000d10| 20 22 08 ac 82 c1 87 08 | 3b ab 87 c2 c3 08 c4 42 | "......|;......B|
|00000d20| 5c 22 87 c2 c3 08 40 c5 | c6 c7 08 41 44 45 c8 42 |\"....@.|...ADE.B|
|00000d30| 42 5c 22 87 22 20 5b 78 | 20 6e 69 6c 20 61 70 70 |B\"." [x| nil app|
|00000d40| 6c 79 20 76 65 63 74 6f | 72 20 28 27 69 67 6e 6f |ly vecto|r ('igno|
|00000d50| 72 65 20 6e 69 6c 29 20 | 74 68 72 6f 77 20 27 72 |re nil) |throw 'r|
|00000d60| 65 73 75 6c 74 20 71 75 | 6f 74 65 20 28 74 29 5d |esult qu|ote (t)]|
|00000d70| 20 37 5d 20 64 62 6f 78 | 20 72 65 73 75 6c 74 20 | 7] dbox| result |
|00000d80| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 09 21 88 |(byte-co|de "..!.|
|00000d90| c2 c3 20 21 87 22 20 5b | 70 6f 70 75 70 2d 64 69 |.. !." [|popup-di|
|00000da0| 61 6c 6f 67 2d 62 6f 78 | 20 64 62 6f 78 20 64 69 |alog-box| dbox di|
|00000db0| 73 70 61 74 63 68 2d 65 | 76 65 6e 74 20 6e 65 78 |spatch-e|vent nex|
|00000dc0| 74 2d 63 6f 6d 6d 61 6e | 64 2d 65 76 65 6e 74 5d |t-comman|d-event]|
|00000dd0| 20 32 29 5d 20 34 20 28 | 23 24 20 2e 20 32 34 36 | 2)] 4 (|#$ . 246|
|00000de0| 37 29 5d 29 0a 23 40 32 | 35 33 20 44 69 73 70 6c |7)]).#@2|53 Displ|
|00000df0| 61 79 20 61 20 6d 65 73 | 73 61 67 65 2c 20 69 6e |ay a mes|sage, in|
|00000e00| 20 61 20 64 69 61 6c 6f | 67 20 62 6f 78 20 69 66 | a dialo|g box if|
|00000e10| 20 70 6f 73 73 69 62 6c | 65 2e 0a 49 66 20 74 68 | possibl|e..If th|
|00000e20| 65 20 73 65 6c 65 63 74 | 65 64 20 64 65 76 69 63 |e select|ed devic|
|00000e30| 65 20 68 61 73 20 6e 6f | 20 64 69 61 6c 6f 67 2d |e has no| dialog-|
|00000e40| 62 6f 78 20 73 75 70 70 | 6f 72 74 2c 20 75 73 65 |box supp|ort, use|
|00000e50| 20 74 68 65 20 65 63 68 | 6f 20 61 72 65 61 2e 0a | the ech|o area..|
|00000e60| 54 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |The argu|ments ar|
|00000e70| 65 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 74 6f |e the sa|me as to|
|00000e80| 20 60 66 6f 72 6d 61 74 | 27 2e 0a 0a 49 66 20 74 | `format|'...If t|
|00000e90| 68 65 20 6f 6e 6c 79 20 | 61 72 67 75 6d 65 6e 74 |he only |argument|
|00000ea0| 20 69 73 20 6e 69 6c 2c | 20 63 6c 65 61 72 20 61 | is nil,| clear a|
|00000eb0| 6e 79 20 65 78 69 73 74 | 69 6e 67 20 6d 65 73 73 |ny exist|ing mess|
|00000ec0| 61 67 65 3b 20 6c 65 74 | 20 74 68 65 0a 6d 69 6e |age; let| the.min|
|00000ed0| 69 62 75 66 66 65 72 20 | 63 6f 6e 74 65 6e 74 73 |ibuffer |contents|
|00000ee0| 20 73 68 6f 77 2e 1f 0a | 28 64 65 66 61 6c 69 61 | show...|(defalia|
|00000ef0| 73 20 27 6d 65 73 73 61 | 67 65 2d 62 6f 78 20 23 |s 'messa|ge-box #|
|00000f00| 5b 28 66 6d 74 20 26 72 | 65 73 74 20 61 72 67 73 |[(fmt &r|est args|
|00000f10| 29 20 22 08 ac 89 09 ac | 86 c2 c3 21 88 c3 87 c4 |) ".....|...!....|
|00000f20| c5 08 09 23 1e 06 c7 20 | ab 8c c8 c3 0e 06 c9 ca |...#... |........|
|00000f30| 42 44 5c 22 88 aa 86 cb | cc 0e 06 5c 22 88 0e 06 |BD\"....|...\"...|
|00000f40| 29 87 22 20 5b 66 6d 74 | 20 61 72 67 73 20 63 6c |)." [fmt| args cl|
|00000f50| 65 61 72 2d 6d 65 73 73 | 61 67 65 20 6e 69 6c 20 |ear-mess|age nil |
|00000f60| 61 70 70 6c 79 20 66 6f | 72 6d 61 74 20 73 74 72 |apply fo|rmat str|
|00000f70| 20 64 65 76 69 63 65 2d | 6f 6e 2d 77 69 6e 64 6f | device-|on-windo|
|00000f80| 77 2d 73 79 73 74 65 6d | 2d 70 20 67 65 74 2d 64 |w-system|-p get-d|
|00000f90| 69 61 6c 6f 67 2d 62 6f | 78 2d 72 65 73 70 6f 6e |ialog-bo|x-respon|
|00000fa0| 73 65 20 22 4f 4b 22 20 | 74 20 64 69 73 70 6c 61 |se "OK" |t displa|
|00000fb0| 79 2d 6d 65 73 73 61 67 | 65 20 6d 65 73 73 61 67 |y-messag|e messag|
|00000fc0| 65 5d 20 35 20 28 23 24 | 20 2e 20 33 35 36 33 29 |e] 5 (#$| . 3563)|
|00000fd0| 5d 29 0a 23 40 32 38 33 | 20 44 69 73 70 6c 61 79 |]).#@283| Display|
|00000fe0| 20 61 20 6d 65 73 73 61 | 67 65 20 69 6e 20 61 20 | a messa|ge in a |
|00000ff0| 64 69 61 6c 6f 67 20 62 | 6f 78 20 6f 72 20 69 6e |dialog b|ox or in|
|00001000| 20 74 68 65 20 65 63 68 | 6f 20 61 72 65 61 2e 0a | the ech|o area..|
|00001010| 49 66 20 74 68 69 73 20 | 63 6f 6d 6d 61 6e 64 20 |If this |command |
|00001020| 77 61 73 20 69 6e 76 6f | 6b 65 64 20 77 69 74 68 |was invo|ked with|
|00001030| 20 74 68 65 20 6d 6f 75 | 73 65 2c 20 75 73 65 20 | the mou|se, use |
|00001040| 61 20 64 69 61 6c 6f 67 | 20 62 6f 78 2e 0a 4f 74 |a dialog| box..Ot|
|00001050| 68 65 72 77 69 73 65 2c | 20 75 73 65 20 74 68 65 |herwise,| use the|
|00001060| 20 65 63 68 6f 20 61 72 | 65 61 2e 0a 54 68 65 20 | echo ar|ea..The |
|00001070| 61 72 67 75 6d 65 6e 74 | 73 20 61 72 65 20 74 68 |argument|s are th|
|00001080| 65 20 73 61 6d 65 20 61 | 73 20 74 6f 20 60 66 6f |e same a|s to `fo|
|00001090| 72 6d 61 74 27 2e 0a 0a | 49 66 20 74 68 65 20 6f |rmat'...|If the o|
|000010a0| 6e 6c 79 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |nly argu|ment is |
|000010b0| 6e 69 6c 2c 20 63 6c 65 | 61 72 20 61 6e 79 20 65 |nil, cle|ar any e|
|000010c0| 78 69 73 74 69 6e 67 20 | 6d 65 73 73 61 67 65 3b |xisting |message;|
|000010d0| 20 6c 65 74 20 74 68 65 | 0a 6d 69 6e 69 62 75 66 | let the|.minibuf|
|000010e0| 66 65 72 20 63 6f 6e 74 | 65 6e 74 73 20 73 68 6f |fer cont|ents sho|
|000010f0| 77 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6d |w...(def|alias 'm|
|00001100| 65 73 73 61 67 65 2d 6f | 72 2d 62 6f 78 20 23 5b |essage-o|r-box #[|
|00001110| 28 66 6d 74 20 26 72 65 | 73 74 20 61 72 67 73 29 |(fmt &re|st args)|
|00001120| 20 22 c0 20 ab 86 c1 c2 | 0b 0c 23 87 c1 c5 0b 0c | ". ....|..#.....|
|00001130| 23 87 22 20 5b 73 68 6f | 75 6c 64 2d 75 73 65 2d |#." [sho|uld-use-|
|00001140| 64 69 61 6c 6f 67 2d 62 | 6f 78 2d 70 20 61 70 70 |dialog-b|ox-p app|
|00001150| 6c 79 20 6d 65 73 73 61 | 67 65 2d 62 6f 78 20 66 |ly messa|ge-box f|
|00001160| 6d 74 20 61 72 67 73 20 | 6d 65 73 73 61 67 65 5d |mt args |message]|
|00001170| 20 34 20 28 23 24 20 2e | 20 34 30 35 37 29 5d 29 | 4 (#$ .| 4057)])|
|00001180| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+